package com.dcm.live.entity;

import com.dcm.common.enums.LikeStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * [点赞]
 *
 * @author : [pengrongsheng]
 * @createTime : [2021/4/8]
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserLikeEntity implements Serializable {
    private Long id;

    /**
     * 被点赞的用户的id
     */
    private Long likedUserId;

    /**
     * 点赞的用户的id
     */
    private Long likedPostId;

    /**
     * 点赞的状态.默认未点赞
     */
    private Integer status = LikeStatusEnum.UNLIKE.getCode();

    public UserLikeEntity(Long likedUserId, Long likedPostId, Integer status) {
        this.likedUserId = likedUserId;
        this.likedPostId = likedPostId;
        this.status = status;
    }
}
